export interface ResponseData {
    code: number
    ok: boolean
    message: string
}
// 菜单数据和按钮数据的ts类型
export interface Permission {
    "id"?: number,
    "createTime": string,
    "updateTime": string,
    "pid": number,
    "name": string,
    "code": null | string,
    "toCode": null,
    "type": number,
    "status": null,
    "level": number,
    "children"?: PermissionList[],
    "select": boolean
}

// 菜单数据和按钮数据的ts类型数组
export type PermissionList = Permission[]
// 菜单接口返回的数据的类型
export interface PermissionResponseData extends ResponseData {
    data: PermissionList
}
// 添加与修改菜单携带的参数的ts类型
export interface MenuParams {
    id?: number,
    code: string,//权限数值
    level: number,//几级菜单
    name: string,//菜单的名字
    pid: number//菜单的ID
}
